package models;

import java.util.Date;
import java.util.List;

public class TeachingSession {
	private int id;
	private int sessionType; // 0 is Lecture, 1 is tutorial, 2 is lab
	private Date date;
	private String name;
	private Teacher teacher;
	private Course course;
	private Room room;
	private int isHavingRecord;
	
	private List<Attendant> attendants;
	
	public TeachingSession(){
		date = new Date();
	}
	
	public String getTypeName(){
		switch(sessionType){
		case 0: return "Lecture";
		case 1: return "Tutorial";
		default: return "Lab";
		}
	}
	
	public int getId() {
		return this.id;
	}
	
	public void setId(int id) {
		this.id = id;
	}

	public int getSessionType() {
		return sessionType;
	}

	public void setSessionType(int sessionType) {
		this.sessionType = sessionType;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public List<Attendant> getAttendants() {
		return attendants;
	}

	public void setAttendants(List<Attendant> attendants) {
		this.attendants = attendants;
	}

	public Room getRoom() {
		return room;
	}

	public void setRoom(Room room) {
		this.room = room;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getIsHavingRecord() {
		return isHavingRecord;
	}

	public void setIsHavingRecord(int isHavingRecord) {
		this.isHavingRecord = isHavingRecord;
	}
}
